<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <ui:page binding="#{editarVariableCal.page1}" id="page1">
            <ui:html binding="#{editarVariableCal.html1}" id="html1">
                <ui:head binding="#{editarVariableCal.head1}" id="head1">
                    <ui:link binding="#{editarVariableCal.link1}" id="link1" url="/resources/stylesheet.css"/>
                </ui:head>
                <ui:body binding="#{editarVariableCal.body1}" id="body1" style="-rave-layout: grid">
                    <ui:form binding="#{editarVariableCal.form1}" id="form1" virtualFormsConfig="VFparaBotones | | botonEnviarCaptura botonEnviaInterfase">
                        <ui:table binding="#{editarVariableCal.tablaDeVariables}" id="tablaDeVariables" lite="true" paginateButton="true"
                            paginationControls="true" style="left: 48px; top: 360px; position: absolute; width: 520px" title="Variables" width="520">
                            //Parte personalizada
                                       <script>
                                function initAllRows() {
                                  var table = document.getElementById("form1:tablaDeVariables");
                                  table.initAllRows();
                                }
                                </script>
                            <ui:tableRowGroup binding="#{editarVariableCal.tableRowGroup1}" id="tableRowGroup1" rows="10"
                                selected="#{editarVariableCal.selectedState}" sourceData="#{editarVariableCal.sct0001DataProviderParaCrearVariableCalculada}" sourceVar="currentRow">
                                <ui:tableColumn binding="#{editarVariableCal.tableColumn1}" headerText="Nombre" id="tableColumn1" sort="SCT0001.NMBREVRBLE">
                                    <ui:staticText binding="#{editarVariableCal.staticText1}" id="staticText1" style="font-size: 10px" text="#{currentRow.value['SCT0001.NMBREVRBLE']}"/>
                                </ui:tableColumn>
                                <ui:tableColumn binding="#{editarVariableCal.tableColumn2}" headerText="Codigo" id="tableColumn2" sort="SCT0001.CDGOVRBLE">
                                    <ui:staticText binding="#{editarVariableCal.staticText2}" id="staticText2" style="font-size: 10px" text="#{currentRow.value['SCT0001.CDGOVRBLE']}"/>
                                </ui:tableColumn>
                                <ui:tableColumn binding="#{editarVariableCal.tableColumn3}" headerText="Restriccion" id="tableColumn3">
                                    <ui:staticText binding="#{editarVariableCal.staticText3}" id="staticText3" style="font-size: 10px" text="#{editarVariableCal.restriccionesSiNo}"/>
                                </ui:tableColumn>
                                <ui:tableColumn binding="#{editarVariableCal.tableColumn4}" headerText="Exigible" id="tableColumn4">
                                    <ui:staticText binding="#{editarVariableCal.staticText4}" id="staticText4" style="font-size: 10px" text="#{editarVariableCal.exigibleSiNo}"/>
                                </ui:tableColumn>
                                <ui:tableColumn binding="#{editarVariableCal.tableColumn5}" headerText="Tipo dato" id="tableColumn5">
                                    <ui:staticText binding="#{editarVariableCal.staticText5}" id="staticText5" style="font-size: 10px" text="#{editarVariableCal.clasesDeTipoDato}"/>
                                </ui:tableColumn>
                                <ui:tableColumn binding="#{editarVariableCal.tableColumn6}" headerText="Tipo variable" id="tableColumn6">
                                    <ui:staticText binding="#{editarVariableCal.staticText6}" id="staticText6" style="font-size: 10px" text="#{editarVariableCal.tipoVariableClase}"/>
                                </ui:tableColumn>
                                <ui:tableColumn align="center" binding="#{editarVariableCal.tableColumn7}" id="tableColumn7" valign="middle">
                                    <ui:radioButton binding="#{editarVariableCal.radioButton1}" id="radioButton1" label="" name="asdasd"
                                        onClick="setTimeout('initAllRows()', 0)" selected="#{editarVariableCal.selected}" selectedValue="#{crearVariableCalculada.selectedValue}"/>
                                </ui:tableColumn>
                            </ui:tableRowGroup>
                            <f:facet name="actionsTop">
                                <ui:dropDown binding="#{editarVariableCal.areaDeSolicitudDropDown}" id="areaDeSolicitudDropDown"
                                    items="#{crearVariableCalculada.sct0020DataProviderParaCrearVariableCalculada.options['SCT0020.CDGOAREASLCTUD,SCT0020.CDGOANDDSCRPCION']}"
                                    label="Area" onChange="common_timeoutSubmitForm(this.form, 'tablaDeVariables1:areaDeSolicitudDropDown');"
                                    style="font-size: 10px" valueChangeListener="#{editarVariableCal.areaDeSolicitudDropDown_processValueChange}"/>
                            </f:facet>
                        </ui:table>
                        <h:panelGrid binding="#{editarVariableCal.gridPanelParaBotonesOpe1}" columns="7" id="gridPanelParaBotonesOpe1"
                            style="height: 24px; left: 48px; top: 336px; position: absolute" width="528">
                            <ui:button action="#{editarVariableCal.botonDeSuma_action}" binding="#{editarVariableCal.botonDeSuma1}" id="botonDeSuma1"
                                mini="true" primary="true" style="width: 48px" text="+"/>
                            <ui:button action="#{editarVariableCal.botonDeResta_action}" binding="#{editarVariableCal.botonDeResta1}" id="botonDeResta1"
                                mini="true" primary="true" style="width: 48px" text="-"/>
                            <ui:button action="#{editarVariableCal.botonDeMultiplicar_action}" binding="#{editarVariableCal.botonDeMultiplicar1}"
                                id="botonDeMultiplicar1" mini="true" primary="true" style="width: 47px" text="*"/>
                            <ui:button action="#{editarVariableCal.botonDeDividir_action}" binding="#{editarVariableCal.botonDeDividir1}" id="botonDeDividir1"
                                mini="true" primary="true" style="width: 48px" text="/"/>
                            <ui:button action="#{editarVariableCal.limpiarBoton_action}" binding="#{editarVariableCal.limpiarBoton1}" id="limpiarBoton1"
                                mini="true" primary="true" style="width: 71px" text="Limpiar"/>
                            <ui:button action="#{editarVariableCal.botonCrear_action}" binding="#{editarVariableCal.botonCrear1}" id="botonCrear1" mini="true"
                                primary="true" style="width: 48px" text="Guardar"/>
                            <ui:checkbox binding="#{editarVariableCal.fechaActualCheckBox}" id="fechaActualCheckBox" label="FECHA ACTUAL" onClick="" style="font-size: 10px; font-weight: bold; width: 120px"/>
                        </h:panelGrid>
                        <ui:label binding="#{editarVariableCal.descripcionLabel1}" for="descripcionTextField" id="descripcionLabel1" requiredIndicator="true"
                            style="left: 48px; top: 264px; position: absolute" text="Nombre"/>
                        <ui:textField binding="#{editarVariableCal.codigoVariableCalcTextField}" disabled="true" id="codigoVariableCalcTextField" maxLength="20" style="left: 120px; top: 240px; position: absolute; width: 168px"/>
                        <ui:message binding="#{editarVariableCal.message1}" for="descripcionTextField" id="message1" showDetail="false" showSummary="true" style="left: 432px; top: 264px; position: absolute; width: 286px"/>
                        <ui:label binding="#{editarVariableCal.codigoLabel1}" for="codigoVariableCalcTextField" id="codigoLabel1" requiredIndicator="true"
                            style="left: 48px; top: 240px; position: absolute" text="Codigo "/>
                        <ui:label binding="#{editarVariableCal.resultadoLabel}" id="resultadoLabel" style="left: 144px; top: 312px; position: absolute"/>
                        <ui:label binding="#{editarVariableCal.operacionLabel1}" id="operacionLabel1" style="left: 48px; top: 312px; position: absolute" text="Operacion  ="/>
                        <ui:dropDown binding="#{editarVariableCal.tipoDropDown}" id="tipoDropDown"
                            items="#{editarVariableCal.tipoDropDownDefaultOptions.options}" style="font-size: 10px; left: 120px; top: 288px; position: absolute"/>
                        <ui:label binding="#{editarVariableCal.tipoLabel1}" id="tipoLabel1" style="left: 48px; top: 288px; position: absolute" text="Tipo"/>
                        <ui:message binding="#{editarVariableCal.message2}" for="codigoVariableCalcTextField" id="message2" showDetail="false"
                            showSummary="true" style="left: 312px; top: 240px; position: absolute"/>
                        <ui:textField binding="#{editarVariableCal.descripcionTextField}" columns="50" id="descripcionTextField" maxLength="100" style="left: 120px; top: 264px; position: absolute; width: 288px"/>
                        <ui:staticText binding="#{editarVariableCal.titulo1}" id="titulo1"
                            style="color: rgb(108, 154, 154); font-family: 'Times New Roman','Times',serif; font-size: 18px; left: 48px; top: 144px; position: absolute" text="Editar   variable calculada"/>
                        <ui:alert binding="#{editarVariableCal.alert1}" id="alert1" style="left: 240px; top: 96px; position: absolute"/>
                        <ui:hiddenField binding="#{editarVariableCal.primeraCargadaHiddenField}" id="primeraCargadaHiddenField"/>
                        <ui:button action="#{editarVariableCal.botonEnviarCaptura_action}" binding="#{editarVariableCal.botonEnviarCaptura}"
                            id="botonEnviarCaptura" mini="true" primary="true" style="left: 47px; top: 192px; position: absolute; width: 62px" text="Capturada"/>
                        <ui:button action="#{editarVariableCal.botonEnviaCalculada_action}" binding="#{editarVariableCal.botonEnviaInterfase}"
                            id="botonEnviaInterfase" mini="true" primary="true" style="left: 119px; top: 192px; position: absolute; width: 71px" text="Interfase"/>
                        <ui:label binding="#{editarVariableCal.labelConvierta1}" id="labelConvierta1" style="left: 48px; top: 168px; position: absolute" text="Convierta :"/>
                        <ui:button action="#{editarVariableCal.botonRegresarLista_action}" binding="#{editarVariableCal.botonRegresarLista}"
                            id="botonRegresarLista" mini="true" primary="true" style="left: 215px; top: 192px; position: absolute; width: 72px" text="Regresar"/>
                        <div style="left: 0px; top: 0px; position: absolute">
                            <jsp:include page="encab1.jspf"/>
                        </div>
                        <ui:checkbox binding="#{editarVariableCal.checkboxLog}" id="checkboxLog" label="Variable auditable" style="font-size: 11px; left: 48px; top: 216px; position: absolute"/>
                        <ui:button action="#{editarVariableCal.button1_action}" binding="#{editarVariableCal.button1}" id="button1" immediate="true" mini="true"
                            primary="true" style="left: 47px; top: 120px; position: absolute; width: 72px" text="Cerrar"/>
                    </ui:form>
                </ui:body>
            </ui:html>
        </ui:page>
    </f:view>
</jsp:root>
